package cn.qhuan.modules.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import org.jeecg.common.aspect.annotation.Dict;
import org.jeecgframework.poi.excel.annotation.Excel;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;

/**
 * @Description: 文档表
 * @Author: 司翔宇
 * @Date:   2020-12-21
 * @Version: V1.0
 */
@Data
@TableName("qh_document")
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = false)
@ApiModel(value="qh_document对象", description="文档表")
public class Document implements Serializable {
    private static final long serialVersionUID = 1L;

	/**主键*/
	@TableId(type = IdType.ASSIGN_ID)
    @ApiModelProperty(value = "主键")
    private String id;
	/**创建人*/
    @ApiModelProperty(value = "创建人")
    private String createBy;
	/**创建日期*/
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "创建日期")
    private Date createTime;
	/**更新人*/
    @ApiModelProperty(value = "更新人")
    private String updateBy;
	/**更新日期*/
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "更新日期")
    private Date updateTime;
	/**文档名称*/
	@Excel(name = "文档名称", width = 15)
    @ApiModelProperty(value = "文档名称")
    private String title;
	/**文档名拼音*/
	@Excel(name = "文档名拼音", width = 15)
    @ApiModelProperty(value = "文档名拼音")
    private String pinyin;
	/**附件地址*/
	@Excel(name = "附件地址", width = 15)
    @ApiModelProperty(value = "附件地址")
    private String url;
	/**文章配图*/
	@Excel(name = "文章配图", width = 15)
    @ApiModelProperty(value = "文章配图")
    private String cover;
	/**文档大小*/
	@Excel(name = "文档大小", width = 15)
    @ApiModelProperty(value = "文档大小")
    private Integer size;
	/**文档类型*/
	@Excel(name = "文档类型", width = 15)
    @ApiModelProperty(value = "文档类型")
    private String type;
	/**页数*/
	@Excel(name = "页数", width = 15)
    @ApiModelProperty(value = "页数")
    private Integer page;
	/**描述*/
	@Excel(name = "描述", width = 15)
    @ApiModelProperty(value = "描述")
    private String docDescribe;
	/**删除状态*/
	@Excel(name = "删除状态", width = 15, dicCode = "del_flag")
	@Dict(dicCode = "del_flag")
    @ApiModelProperty(value = "删除状态")
    private String delFlag;
	/**是否显示*/
	@Excel(name = "是否显示", width = 15, dicCode = "show_front")
	@Dict(dicCode = "show_front")
    @ApiModelProperty(value = "是否显示")
    private String showFront;
	/**状态*/
	@Excel(name = "状态", width = 15)
    @ApiModelProperty(value = "状态")
    private String status;
	/**审核人*/
	@Excel(name = "审核人", width = 15)
    @ApiModelProperty(value = "审核人")
    private String auditBy;
	/**审核时间*/
	@Excel(name = "审核时间", width = 15, format = "yyyy-MM-dd")
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd")
    @DateTimeFormat(pattern="yyyy-MM-dd")
    @ApiModelProperty(value = "审核时间")
    private Date auditTime;
	/**审核被拒绝理由*/
	@Excel(name = "审核被拒绝理由", width = 15)
    @ApiModelProperty(value = "审核被拒绝理由")
    private String refusedReason;
	/**排序*/
	@Excel(name = "排序", width = 15)
    @ApiModelProperty(value = "排序")
    private Integer sort;
}
